<h3 class="title_wrapper" style="margin-bottom:0;">{$title}</h3>
<div class="wrapper">
{if isset($notification)}
<div class="section">
    <div class="message {$notification.type}">
        <span>{$notification.msg}</span>
    </div>
</div>
{/if}
<ul class="listpost">
{$i=1}
{foreach $listpost as $row}
<li>
<div class="listpost_top"><a href="{Url::anchor("khoa-hoc/v{$row.id}/{String::toUrl($row.name)}")}">{$i} - {$row.name}</a></div>
<div class="listpost_bottom" align="right">
    <a href="{Url::anchor("webmin/top/{$row.id}")}" title="Lên top"><img src="/styles/admin/gfx/icons/small/top.png" alt="" /></a>
	<a href="{Url::anchor("webmin/update/{$row.id}")}" title="Chỉnh sửa"><img src="/styles/admin/gfx/icons/small/edit.png" alt="" /></a>
    <a href="javascript:void(0)" onclick="myconfirm({$row.id})" title="Xóa"><img src="/styles/admin/gfx/icons/small/trash.png" alt="" /></a>
</div>
<div class="clear"></div>
</li>
{$i=$i+1}
{foreachelse}
<li class="wrapper" style="padding:20px;" align="center">Chưa có bài viết nào</li>
{/foreach}
</ul>
</div><!--wrapper-->
<script type="text/javascript">
$(document).ready(function(){
	$('.message').click(function(){
		$('.section').fadeOut('slow')
	});
});
</script>
<script type="text/javascript">
function myconfirm(id){
	var x;
	var r=confirm("Bạn có chắc chắn muốn xóa tin này không ? ");
	if(r==true){
		window.location = '{Url::anchor("webmin/delete/'+id+'")}';
	}
}
</script>